package com.zbj.consul.consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * HelloService
 *
 * @author weigang
 * @create 2019-08-10
 **/
@Component
public class HelloService {

    @Autowired
    private ConsulFeignClient consulFeignClient;

    public String hello(String world) {
        return consulFeignClient.sayHelloFromClientConsul(world);
    }
}